#include "../../include/pagelib/Configuration.h"
#include "../../include/pagelib/PageLib.h"
#include "../../include/pagelib/MyLogger.h"
#include "../../include/pagelib/DataStore.h"
int main()
{
    Configuration *conf = Configuration::getInstance();
    // 读取配置文件
    conf->readConfigFile("/home/yuan/Project/SearchEngine/conf/pageLib.conf");

    // 生成网页库
    PageLib pagelib(conf->getMapValue("corpusPath"));
    // 创建网页库相关的数据
    pagelib.createPageLib();
    // 将数据存储到文件
    pagelib.storePageLibToFile();

    // 将数据存储到数据库
    DataStore datastore;
    datastore.storeToDataBase();

    return 0; 
}